#ifndef NET_RUNNABLE_H
#define NET_RUNNABLE_H

#include <QtCore/QThread>

namespace wfnet
{
class NetRunner;
class WfNet;

class NetRunnable : public QObject
{
    Q_OBJECT
public:
    NetRunnable(WfNet* net, int repetitions);
    ~NetRunnable();

    void start();
    void quit();

public slots:
    void run();

private:
    friend class NetRunner;

    QThread* m_thread;
    WfNet* m_net;
    int m_repetitions;
    volatile bool m_quitRequest;
};

} // namespace wfnet

#endif
